Skip to content

Conversation

joankaradimov
Copy link
Contributor

@joankaradimov joankaradimov commented Mar 15, 2022

This introduces three tweaks to CMakeLists.txt:

  • It fixes a problem in the resource compiler in MSVC caused by the add_compile_options ("-W4") option.
  • A linker error when TESTSUITE is disabled
  • It allows for a build that does not include the examples

Each is in a separate commit. Each commit has some more details in its description.

Use `add_compile_options ("-W4")` instead of `add_definitions ("-W4")` since
the latter passes a `-W4` argument to `rc.exe` which results in this error:

  fatal error RC1106: invalid option: -4

The same is done for non-MSVC compilers for consistency and to avoid similar
problems.
This avoids the following linker error:

unresolved external symbol _MemoryModuleTestsuite referenced in function _main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant